from urllib.parse import urlparse

url = "https://prod-na-api.popmart.com/shop/v1/search"
path = urlparse(url).path
print(path)  # 输出: /shop/v1/search